package jw.hospital.hosp.model.base;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
public class BaseMongoEntity implements Serializable {

    @Id
    private  String  id;

    @ApiModelProperty(value = "创建时间")
    private  Date  createTime;

    @ApiModelProperty(value = "更新时间")
    private  Date  updateTime;

    @ApiModelProperty(value = "创建人")
    private  String  createBy;

    @ApiModelProperty(value = "修改人")
    private  String  updateBy;

    @ApiModelProperty(value = "逻辑删除(0.未删除,1.已删除)")
    private  String  isDeleted;

    @ApiModelProperty(value = "其他数据")
    @Transient
    private Map<String,Object> param=new HashMap<>();


}
